//数组的查表法
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

import java.sql.SQLOutput;
import java.util.Scanner;
public class test_01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入对应的星期(1-7)");
        int week = sc.nextInt();
        char c = getWeek(week);
        System.out.println("今天是星期"+c);
    }
    public static char getWeek(int week) {
        char[] arr = {' ','一','二','三','四','五','六','日',};
        return  arr[week];
    }
}
